package com.yf.exam.modules.trainingarchives.evaluation.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(value="EvaluationItemTemplateDTO对象", description="满意度调查项模板表")
public class EvaluationItemTemplateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "满意度调查项ID")
    private String id;

    @ApiModelProperty(value = "调查内容")
    @NotBlank(message = "调查内容不能为空")
    private String content;

    @ApiModelProperty(value = "模板类型（1：培训班模板，2：培训教师模板）")
    @Min(value = 1, message = "模板类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "满意度调查项父级ID")
    @NotBlank(message = "父级ID不能为空")
    private String parentId;

    @ApiModelProperty(value = "机构id")
    private String organizationId;
}
